import request from '@/utils/request'
// 故障维修
// 查询
export function query(data, page) {
  return request({
    url: `/mes/m/repair/maintenance/list?page=${page.page}&pageSize=${page.pageSize}`,
    method: 'post',
    data
  })
}
// 保存
export function save(data) {
  return request({
    url: `/mes/m/repair/maintenance/save`,
    method: 'put',
    data
  })
}
// 删除
export function remove(data) {
  return request({
    url: `/mes/m/repair/maintenance/delete`,
    method: 'delete',
    data
  })
}
// 查询
export function getById(id) {
  return request({
    url: `/mes/m/repair/maintenance/getById/${id}`,
    method: 'get'
  })
}
